package cn.iocoder.yudao.module.tms.controller.admin.companyaccountperiod.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 公司账期信息分页 Request VO")
@Data
public class CompanyAccountPeriodPageReqVO extends PageParam {

    @Schema(description = "公司ID", example = "2048")
    private Long companyId;

    @Schema(description = "授信额度（元）")
    private BigDecimal creditLimit;

    @Schema(description = "授信预警金额（元）")
    private BigDecimal creditAlertAmount;

    @Schema(description = "当前合作金额（元）")
    private BigDecimal currentCreditUsed;

    @Schema(description = "账期天数")
    private Integer billingCycleDays;

    @Schema(description = "账期提前提醒天数")
    private Integer billingAlertDays;

    @Schema(description = "账期开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] billingStartDate;

    @Schema(description = "账期到期日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] billingDueDate;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
